<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title><?php echo $title; ?></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css" href="styles/default/default.css" />
	</head>
	<body>
		<div id="header">
			<h1 class="planet-title">
				<?php echo $title; ?>
			</h1>
		</div>
		<div id="container">
			<div id="content">
				<ol class="planet-posts">
				<?php foreach ($planet as $item) { ?>
					<li>
						<h2 class="post-title">
							<a href="<?php echo $item['link']; ?>">
								<?php echo $item['title']; ?>
							</a>
						</h2>
						<div class="post-published">
							<?php echo date('F jS, Y, h:i', $item['published']); ?> from <?php echo $item['author']; ?>
						</div>
						<div class="post-description">
							<?php echo $item['description']; ?>
						</div>
					</li>
				<?php } ?>
				</ol>
			</div>
			<div id="channels">
				<h2 class="channels-title">Feeds</h2>
				<ul class="channels">
					<?php foreach ($channels as $channel) { ?>
					<li>
						<a href="<?php echo $channel['link']; ?>"><?php echo $channel['name']; ?></a>
						<?php echo $channel['description']; ?>
					</li>
					<?php } ?>
				</ul>
			</div>
		</div>
		<div id="footer">
			Powered by Planeta | Watching <?php echo count($channels); ?> feeds
		</div>
	</body>
</html>
